package com.lyj.mall.service.impl;

import com.lyj.mall.dao.UserRolesMapper;
import com.lyj.mall.pojo.UserRoles;
import com.lyj.mall.service.UserRolesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lyj
 * @date 2019/12/17 23:47
 */
@Service
public class UserRolesServiceImpl implements UserRolesService {

    @Resource
    private UserRolesMapper userRolesMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return userRolesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(UserRoles record) {
        return userRolesMapper.insert(record);
    }

    @Override
    public int insertSelective(UserRoles record) {
        return userRolesMapper.insertSelective(record);
    }

    @Override
    public UserRoles selectByPrimaryKey(Integer id) {
        return userRolesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRoles record) {
        return userRolesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserRoles record) {
        return userRolesMapper.updateByPrimaryKey(record);
    }

}
